package com.sky.mapper.common;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    void addBatch(@Param("list") List<DishFlavor> flavors);
    @Update("delete from dish_flavor where dish_id = #{dishId}")
    void deleteByDishId(@Param("dishId")Long dishId);
}
